package com.moji.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.moji.common.base.PageEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色信息表
 * </p>
 *
 * @author ccl
 * @since 2024-07-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SysRole对象", description="角色信息表")
public class SysRole extends PageEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "自增列")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "角色代码")
    private String roleCode;

    @ApiModelProperty(value = "角色名称")
    private String roleName;

    @ApiModelProperty(value = "别名")
    private String otherName;

    @ApiModelProperty(value = "角色说明")
    private String roleDescription;

    @ApiModelProperty(value = "备注")
    private String roleRemark;

    @ApiModelProperty(value = "状态1：启用0：停用")
    private Integer prOnoff;

    @ApiModelProperty(value = "启停日期")
    private Date prOnoffTime;

    @ApiModelProperty(value = "排序：值越小排序越靠前，建议模块间采用冯100跳，方便后续模块插入，如：模块1，值100，模块2值200")
    private Integer orderNo;

    @ApiModelProperty(value = "部门编码")
    private String deptCode;

    @ApiModelProperty(value = "部门名称")
    private String deptName;

    @ApiModelProperty(value = "父级编码")
    private String parentCode;

    @ApiModelProperty(value = "父级名称")
    private String parentName;

    @ApiModelProperty(value = "系统编码")
    private String systemCode;

    @ApiModelProperty(value = "系统名称")
    private String systemName;

    @ApiModelProperty(value = "模块编号")
    private String modelCode;

    @ApiModelProperty(value = "模块编号")
    private String modelName;

    @ApiModelProperty(value = "操作人id")
    private String updateId;

    @ApiModelProperty(value = "创建人id")
    private String createId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "备用字段1")
    private Integer spareInt1;

    @ApiModelProperty(value = "备用字段2")
    private Integer spareInt2;

    @ApiModelProperty(value = "备用字段1")
    private String spareString1;

    @ApiModelProperty(value = "备用字段2")
    private String spareString2;

    @ApiModelProperty(value = "全局唯一流水号")
    private String seqNo;

    @ApiModelProperty(value = "角色类型:0-超级管理员，1-园区管理员，2-系统管理员，3-企业管理员，4-普通用户")
    private String roleType;


}
